package com.qijian.system.domain.vo;


import com.qijian.common.utils.mybatis.WhereType;
import com.qijian.common.utils.mybatis.WhereTypeEnum;
import lombok.Data;
import java.util.Set;
import lombok.ToString;
import com.baomidou.mybatisplus.annotation.TableName;


/**
 * 人员分组对象 查询条件类
 *
 * @author qijian
 * @date 2022-10-11
 */

@Data
@ToString
@TableName("sys_user_group")
public class UserGroupQuery {

    @WhereType(filed = "id")
    private Long id;
    @WhereType(filed = "code", type = WhereTypeEnum.LIKE)
    private String code;
    @WhereType(filed = "name", type = WhereTypeEnum.LIKE)
    private String name;
    @WhereType(filed = "parent_id")
    private Long parentId;
    @WhereType(filed = "user_id")
    private Long userId;
    @WhereType(filed = "user_id", type = WhereTypeEnum.NOTNULL)
    private Boolean userIdIsNotNull;
    @WhereType(filed = "nick_name")
    private String nickName;
    @WhereType(func = "(code = {1} or name = {1}) and parent_id > 0")
    private String codeOrName;
    @WhereType(filed = "group_type")
    private Integer groupType;



}
